Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS-59 Add pytest bdd #13

Merged
merged 4 commits into from
Oct 31, 2024
Merged

FS-59 Add pytest bdd #13

merged 4 commits into from
Oct 31, 2024

Conversation

mic-smith
Copy link
Collaborator

Description

Incorporates pytest-bdd and is based on the changes in WaitThatShouldntWork/Infer@main...feature/bdd-test

Uses LangChain evaluators to check for correctness in the case of none contains matches,

Changelog

  • Add pyytest-bdd
  • Add sample tests
  • Update redis config to support access from tests
  • Disable BDD tests from actions backend test check

@mic-smith mic-smith force-pushed the FS-59/add-pytest-bdd branch from de01657 to 4acaef3 Compare October 30, 2024 14:15
@mic-smith mic-smith force-pushed the FS-59/add-pytest-bdd branch from 4acaef3 to 0dde4a8 Compare October 30, 2024 14:39

tolerance = Decimal("0.01")
is_equal = abs(expected_value - actual_value) <= tolerance

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may not actually need this decimal stuff. I originally thought we had an issue with types before finding out it was the closed loop error stuff. Don't think it would hurt to keep it in though!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I don't think it's currently used, as it would only apply when just a numeric value is returned.

Copy link
Collaborator

@mnyamunda-scottlogic mnyamunda-scottlogic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix! Just a minor comment from me.

@mic-smith mic-smith merged commit 66a6ae4 into main Oct 31, 2024
4 checks passed
@mic-smith mic-smith deleted the FS-59/add-pytest-bdd branch October 31, 2024 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants